﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StockTrading.Model
{
   public class Transaction
    {
        [Column("id")]
        [Required]
        public int Id { get; set; }

        [Column("buy_order_id")]
        [Required]
        public int Buy_OrderId { get; set; }
        public Order Buy_Order { get; set; }

        [Column("sell_order_id")]
        [Required]
        public int Sell_OrderId { get; set; }

        public Order Sell_Order { get; set; }
        
        [Column("dealed")]
        [Required]
        public double Dealed { get; set; }

    }
}
